package com.ruoyi.service.impl;

import java.math.BigDecimal;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mapper.YcThesisMapper;
import com.ruoyi.domain.YcThesis;
import com.ruoyi.service.IYcThesisService;
import com.ruoyi.common.core.text.Convert;

/**
 * 论文Service业务层处理
 * 
 * @author 杨琛
 * @date 2020-09-09
 */
@Service
public class YcThesisServiceImpl implements IYcThesisService 
{
    @Autowired
    private YcThesisMapper ycThesisMapper;

    /**
     * 查询论文
     * 
     * @param id 论文ID
     * @return 论文
     */
    @Override
    public YcThesis selectYcThesisById(Long id)
    {
        return ycThesisMapper.selectYcThesisById(id);
    }

    /**
     * 查询论文列表
     * 
     * @param ycThesis 论文
     * @return 论文
     */
    @Override
    public List<YcThesis> selectYcThesisList(YcThesis ycThesis)
    {
        return ycThesisMapper.selectYcThesisList(ycThesis);
    }

    /**
     * 新增论文
     * 
     * @param ycThesis 论文
     * @return 结果
     */
    @Override
    public int insertYcThesis(YcThesis ycThesis)
    {
        return ycThesisMapper.insertYcThesis(ycThesis);
    }

    /**
     * 修改论文
     * 
     * @param ycThesis 论文
     * @return 结果
     */
    @Override
    public int updateYcThesis(YcThesis ycThesis)
    {
        return ycThesisMapper.updateYcThesis(ycThesis);
    }

    /**
     * 删除论文对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteYcThesisByIds(String ids)
    {
        return ycThesisMapper.deleteYcThesisByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除论文信息
     * 
     * @param id 论文ID
     * @return 结果
     */
    @Override
    public int deleteYcThesisById(Long id)
    {
        return ycThesisMapper.deleteYcThesisById(id);
    }

    @Override
    public int submitApplications(Long id) {
        return ycThesisMapper.submitApplications(id);
    }

    @Override
    public int updateSubmitForApproval(Long id) {
        return ycThesisMapper.updateSubmitForApproval(id);
    }

    @Override
    public int withdrawClaim(Long id) {
        return ycThesisMapper.withdrawClaim(id);
    }

    @Override
    public int refusal(Long id) {
        return ycThesisMapper.refusal(id);
    }

    @Override
    public int updateDismissTheApproval(Long id) {
        return ycThesisMapper.updateDismissTheApproval(id);
    }

    @Override
    public int consent(Long id) {
        return ycThesisMapper.consent(id);
    }

    @Override
    public int updateBeApproved(Long id) {
        return ycThesisMapper.updateBeApproved(id);
    }

    @Override
    public List<YcThesis> selectYcThesisListAdmin(YcThesis ycTask) {
        return ycThesisMapper.selectYcTaskListAdmin(ycTask);
    }

}


